package com.bw.service;

import com.bw.bean.DyingBean;
import com.bw.bean.FleiBean;
import com.bw.bean.Middle1Bean;
import com.bw.mapper.DyingBeanMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class DyingBeanServicelmpl implements DyingBeanService{

    @Resource
    private DyingBeanMapper dyingBeanMapper;

    @Override
    public List<DyingBean> list(Map map) {
        return dyingBeanMapper.list(map);
    }

    @Override
    public int delDying(Integer[] sid) {
        return dyingBeanMapper.delDying(sid);
    }

    @Override
    public int delMiddle(Integer[] sid) {
        return dyingBeanMapper.delMiddle(sid);
    }

    @Override
    public int addDying(DyingBean dyingBean) {
        return dyingBeanMapper.addDying(dyingBean);
    }

    @Override
    public int addMiddle(Middle1Bean middle1Bean) {
        return dyingBeanMapper.addMiddle(middle1Bean);
    }

    @Override
    public List<FleiBean> huixian() {
        return dyingBeanMapper.huixian();
    }

    @Override
    public DyingBean idlist(Integer sid) {
        return dyingBeanMapper.idlist(sid);
    }

    @Override
    public int updateDying(DyingBean dyingBean) {
        return dyingBeanMapper.updateDying(dyingBean);
    }

}
